//package com.qpx.springbootdemo1.config;
//
//import com.qpx.springbootdemo1.interceptor.ToKenInterceptor;
//import org.hibernate.validator.internal.engine.messageinterpolation.parser.TokenIterator;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//
//
//@Configuration
//public class MyWebConfigure implements WebMvcConfigurer {
//
//    @Autowired
//    TokenIterator toKenInterceptor;
//
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(toKenInterceptor).addPathPatterns(new String[]{"/**"}).excludePathPatterns(new String[]{"/login"});
//
//    }
//
//}
